<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户注册</title>
<link rel="stylesheet" type="text/css"
	href="<c:url value="/resources/style.css" />" />
</head>
<body>
	<h1>注册</h1>

	<!-- 	<form method="POST">
		<span>
			昵称：<input type="text" name="nickname" />
		</span>
		<span>
			姓名：<input type="text" name="name" />
		</span>
		<span>
			密码：<input type="password" name="password" />
		</span>
		<span>
			<input type="button" value="注册" />
		</span>
	</form> -->

	<sf:form method="POST" commandName="spitter">
		<sf:label path="nickname" cssErrorClass="error">
			昵称：
			<sf:input path="nickname" cssErrorClass="error" />
			<sf:errors path="nickname" cssClass="error" />
			<br>
		</sf:label>
		<sf:label path="name" cssErrorClass="error">
			姓名：
			<sf:input path="name" cssErrorClass="error" />
			<sf:errors path="name" cssClass="error" />
			<br>
		</sf:label>
		<sf:label path="password" cssErrorClass="error">
			密码：
			<sf:password path="password" cssErrorClass="error" />
			<sf:errors path="password" cssClass="error" />
			<br>
		</sf:label>
		<span>
			<input type="submit" value="注册" />
		</span>

		<sf:errors path="*" element="div" cssClass="errors" />
	</sf:form>
</body>
</html>